﻿@{
    ViewBag.Title = "Messages";
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}
@using MvcMall.Portal.Controllers;
@model MessageViewModel
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")"></script>
<script type="text/javascript">
    $(document).ready(function () {
        function jump(count) {
            window.setTimeout(function () {
                count--;
                if (count > 0) {
                    jump(count);
                }
                else {
                  @if (string.IsNullOrEmpty(Model.ReturnUrl))
                  {
                    <text>history.go(-1);</text>
                  }
                  else
                  {
                    <text>location.href = '@Url.Content(Model.ReturnUrl)'</text>
                  }
                }
            }, 1000);
        }
        jump(3);
    });   

</script>
<div class="redline">
</div>
<div class="wrap" style="margin-top: 20px;">
    <div class="right_box">
        <div class="right_box_map">
            信息提示
        </div>
        <div class="MessageBox">
            <div style="margin-left: 300px;">
                <table width="600px">
                    <tr>
                        <td width="100px">
                            <img src="../../Content/images/user_accept.jpg" style="width: 80px; height: 80px;" />
                        </td>
                        <td>
                            <div id="Message">
                                @Model.Content 
                            </div>
                            <div id="returnUrl">
                                @if (string.IsNullOrEmpty(Model.ReturnUrl))
                                {
                                    <text><a href="#" style=" color:#339900" onclick="history.go(-1);">如果浏览器没有转向,请点这里.</a></text>
                                }
                                else
                                {
                                    <text><a href="@Model.ReturnUrl" style=" color:#339900">如果浏览器没有转向,请点这里.</a></text>
                                }
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
